package com.chatcompetition.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.chatcompetition.config.CustomLocalDateTimeSerializer;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("employee")
public class Employee {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id; // 主键ID
    private String employeeNumber; // 工号
    private String employeeDepartment; // 所属部门
    private String name; // 姓名
    private String employeePassword; // 密码
    private String phone   ; // 手机号

    @JsonSerialize(using = CustomLocalDateTimeSerializer.class)
    private LocalDateTime createdAt; // 创建时间

    @JsonSerialize(using = CustomLocalDateTimeSerializer.class)
    private LocalDateTime updatedAt; // 更新时间
    private int employeeStatus; // 员工状态

}